<?php if(!in_array(@$data->folder_campaign, array(null, '', '0'))) :?>
<?php
    @$data = file_get_contents('http://localhost/adv/site/'.$data->folder_campaign);
    if(!in_array(@$data, array(null, '', '0')))
    {
        echo $data;
    }else{
        echo $this->load->view('temp/index/index');
    }
?>
<?php else:?>
<?php echo $this->load->view('temp/index/index');?>
<?php endif;?>